package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("exchange_goods")
public class ExchangeGoodsDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer shopId; // 小票
    private Long shelfId; // 上架流水
    private Long orderNumber; // 进货订单
    private Boolean canResell; // 可以再次销售
    private String barCode; // 商品码
    @TableField("`count`")
    private Integer count; // 数量
    private String reason; // 原因
    private Integer serviceId; // 售后点

    private Integer finished; // 状态枚举
    private Integer type; // 店换or厂换
    private Long factoryExchangeId; // 若厂换，记录厂换单id

    public Integer getFinished() {
        return finished;
    }

    public void setFinished(Integer finished) {
        this.finished = finished;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getFactoryExchangeId() {
        return factoryExchangeId;
    }

    public void setFactoryExchangeId(Long factoryExchangeId) {
        this.factoryExchangeId = factoryExchangeId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public Long getShelfId() {
        return shelfId;
    }

    public void setShelfId(Long shelfId) {
        this.shelfId = shelfId;
    }

    public Long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Boolean getCanResell() {
        return canResell;
    }

    public void setCanResell(Boolean canResell) {
        this.canResell = canResell;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    @Override
    public String toString() {
        return "ExchangeGoodsDO{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", shelfId=" + shelfId +
                ", orderNumber=" + orderNumber +
                ", canResell=" + canResell +
                ", barCode='" + barCode + '\'' +
                ", count=" + count +
                ", reason='" + reason + '\'' +
                ", serviceId=" + serviceId +
                ", finished=" + finished +
                ", type=" + type +
                ", factoryExchangeId=" + factoryExchangeId +
                '}';
    }
}
